import request from "@/codecat/request";
export const uploadApi = "/common/upload_file";


// 获取机构校区KV
export function schoolList(data) {
	return request({
		url: "/common/school_kv",
		method: "post",
		data,
		headers: {
			isLoseInstitution: true,
		},
	});
}
// 获取校区员工KV
export function teacherList(data) {
	return request({
		url: "/common/teacher_kv",
		method: "post",
		data,
		headers: {
			repeatSubmit: false,
		},
	});
}

// 教室
export function roomList(data) {
	return request({
		url: "/common/classroom_kv",
		method: "post",
		data,
		headers: {
			repeatSubmit: false,
		},
	});
}
// 班级
export function classList(data) {
	return request({
		url: "/common/cla_kv",
		method: "post",
		data,
		headers: {
			repeatSubmit: false,
		},
	});
}
//tree
export function schoolTree(data) {
	return request({
		url: "/common/school_tree",
		method: "post",
		data,
		headers: {
			repeatSubmit: false,
		},
	});
}